package com.xesj.util;

public class StrConvert {

    /**
     * 
    * @Title: getStatusString
    * @Description: 根据编码获取单据状态
    * @param @param status
    * @param @return    设定文件
    * @return String    返回类型
    * @throws
     */
    public static String getStatusString(String status) {
        if ("".equals(status) || status == null){
            status = "0";
        }
        int i_status = Integer.parseInt(status);
        switch (i_status) {
        case 0:
            return "未审核";
        case 1:
            return "已审核";
        case 2:
            return "已作废";
        case 3:
            return "已复核";
        case 4:
            return "已转单";
        case 5:
            return "已收货";
        case 6:
            return "已验货";
        case 100:     
        	return "未完成";
        case 101:     
        	return "已完成";
        default:
            return "未知状态";
        }
    }
}
